package csu.web.credit_bank.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("user_resources") // 确保这里的表名和您数据库中的完全一致
public class UserResource implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO) // 告诉MyBatis-Plus主键是自增的
    private Long id;
    private String userId;
    private String resourceId;
    private Date joinedAt;
}